package com.boniu.startapp.services;

import android.accessibilityservice.AccessibilityService;
import android.content.Intent;
import android.content.res.Configuration;
import android.view.accessibility.AccessibilityEvent;


public class MyAccessibilityService extends AccessibilityService {

    public static final String TAG = "WindowChange";

    public static AdMainFunctions mainFunctions;
    private int create_num, connect_num;


    @Override
    public void onCreate() {
        super.onCreate();
    }
    @Override
    protected void onServiceConnected() {
        super.onServiceConnected();
        mainFunctions = new AdMainFunctions(this);
        mainFunctions.onServiceConnected();
    }


    @Override
    public void onAccessibilityEvent(AccessibilityEvent event) {
        mainFunctions.onAccessibilityEvent(event);
    }


    @Override
    public void onConfigurationChanged(Configuration newConfig) {
        super.onConfigurationChanged(newConfig);
    }

    @Override
    public boolean onUnbind(Intent intent) {
        mainFunctions = null;

        return super.onUnbind(intent);
    }

    @Override
    public void onInterrupt() {
    }

    


}
